package com.youu.youu.restapi.service;

import java.util.List;

import com.youu.youu.manager.bean.Message;


public interface MessageService {
	
	/**
	 * 根据用户id查消息
	 * @param uid
	 * @return
	 */
	List<Message> getMsgList(Integer uid);
	
	/**
	 * 给用户发送消息
	 * @param uid
	 * @param loginacct
	 * @return
	 */
	boolean addMsg(Integer uid, Integer mid, String[] params);

	/**
	 * 改变消息的状态
	 * @param msgid
	 * @return
	 */
	boolean update(Integer msgid);
}
